﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAL;
using System.Data;

namespace BLL
{
    public class PHONGBANBUS
    {
        public static List<PHONGBAN> GETALLPB()
        {
            PHONGBANDAO pb = new PHONGBANDAO();
            return pb.GetListPB();
        }
		public static DataTable GETALLPBs()
		{
			PHONGBANDAO pb = new PHONGBANDAO();
			return pb.GetListPBs();
		}

        public static string CreateNewID()
        {
            PHONGBANDAO pb = new PHONGBANDAO();
            return pb.CreateNewID();
        }
        public static bool INSERT(PHONGBAN pbs)
        {
            PHONGBANDAO pb = new PHONGBANDAO();
            return pb.INSERT(pbs);
        }
        public static bool UPDATE(PHONGBAN pbs)
        {
            PHONGBANDAO pb = new PHONGBANDAO();
            return pb.UPDATE(pbs);
        }
        public static bool DELETE(PHONGBAN pbs)
        {
            PHONGBANDAO pb = new PHONGBANDAO();
            return pb.DELETE(pbs);
        }
    }
}
